package awt;

import java.awt.*;

/**
 * @description: 网格状布局
 * @author: Tom
 * @create: 2019-07-23 15:24
 **/
public class ButtionGrid {
    public static void main(String[] args) {
        Frame f = new Frame("GridLayout");
        f.setVisible(true);
        f.setSize(200,200);
        // 3行2列
        f.setLayout(new GridLayout(3,2));
        f.add(new Button("1"));
        f.add(new Button("2"));
        f.add(new Button("3"));
        f.add(new Button("4"));
        f.add(new Button("5"));
        f.add(new Button("6"));


    }
}
